import androidx.fragment.app.Fragment

//package com.oy.topline.fragment
//
//import android.content.Intent
//import android.os.Bundle
//import android.view.LayoutInflater
//import android.view.View
//import android.view.ViewGroup
//import androidx.fragment.app.Fragment
//import com.nightonke.boommenu.BoomButtons.ButtonPlaceEnum
//import com.nightonke.boommenu.BoomButtons.TextInsideCircleButton
//import com.nightonke.boommenu.BoomMenuButton
//import com.nightonke.boommenu.ButtonEnum
//import com.nightonke.boommenu.Piece.PiecePlaceEnum
//import com.oy.topline.R
//import com.oy.topline.activity.AndroidCountActivity
//import com.oy.topline.activity.JavaCountActivity
//import com.oy.topline.utils.BuilderManager
//
class CountFragment : Fragment() {
//    private var bmb: BoomMenuButton? = null
//    override fun onCreateView(
//        inflater: LayoutInflater, container: ViewGroup?,
//        savedInstanceState: Bundle?
//    ): View? {
//        val view = inflater.inflate(R.layout.fragment_count, container, false)
//        bmb = view.findViewById<View>(R.id.bmb) as BoomMenuButton
//        assert(bmb != null)
//        //设置点击圆形菜单后显示的多个按钮为圆形且带文本的
//        bmb!!.buttonEnum = ButtonEnum.TextInsideCircle
//        bmb!!.piecePlaceEnum = PiecePlaceEnum.DOT_9_1 //设置右下角圆形菜单中有9个圆形
//        //设置点击右下角圆形菜单后显示的按钮为9个圆形Button
//        bmb!!.buttonPlaceEnum = ButtonPlaceEnum.SC_9_1
//        for (i in 0 until bmb!!.piecePlaceEnum.pieceNumber()) {
//            addBuilder()
//        }
//        return view
//    }
//
//    private fun addBuilder() {
//        bmb!!.addBuilder(TextInsideCircleButton.Builder()
//            .normalImageRes(BuilderManager.getImageResource())
//            .normalTextRes(BuilderManager.getTextResource())
//            .listener { index ->
//                when (index) {
//                    0 -> {
//                        val android = Intent(activity, AndroidCountActivity::class.java)
//                        startActivity(android)
//                    }
//                    1 -> {
//                        val java = Intent(activity, JavaCountActivity::class.java)
//                        startActivity(java)
//                    }
//                }
//            })
//    }
}